import request from '@/utils/request'

// 查询酒店评价列表
export function listHotelreviews(query) {
  return request({
    url: '/business/hotelreviews/list',
    method: 'get',
    params: query
  })
}

// 查询酒店评价详细
export function getHotelreviews(reviewId) {
  return request({
    url: '/business/hotelreviews/' + reviewId,
    method: 'get'
  })
}

// 新增酒店评价
export function addHotelreviews(data) {
  return request({
    url: '/business/hotelreviews',
    method: 'post',
    data: data
  })
}

// 修改酒店评价
export function updateHotelreviews(data) {
  return request({
    url: '/business/hotelreviews',
    method: 'put',
    data: data
  })
}

// 删除酒店评价
export function delHotelreviews(reviewId) {
  return request({
    url: '/business/hotelreviews/' + reviewId,
    method: 'delete'
  })
}
